From b57e4ee13e4b950ca5d75db23eb19789f19220d3 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 12 Jan 2010 06:56:56 +0000 Subject: [PATCH] xend, pciquirk: fix uninitialized variable Fixes uninitialized variable when there's no PERMISSIVE_CONFIG_FILE Signed-off-by: Christoph Egger --- tools/python/xen/xend/server/pciquirk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/python/xen/xend/server/pciquirk.py b/tools/python/xen/xend/server/pciquirk.py index eda3d1d459..ba56ebdf8b 100644 --- a/tools/python/xen/xend/server/pciquirk.py +++ b/tools/python/xen/xend/server/pciquirk.py @@ -117,14 +117,14 @@ class PCIQuirk: pci_perm_dev_config = [''] else: pci_perm_dev_config.insert(0, '') - self.pci_perm_dev_config = pci_perm_dev_config except Exception, ex: raise XendError("Reading config file %s: %s" % (PERMISSIVE_CONFIG_FILE,str(ex))) else: log.info("Config file does not exist: %s" % PERMISSIVE_CONFIG_FILE) - self.pci_perm_dev_config = ['xend-pci-perm-devs'] + pci_perm_dev_config = ['xend-pci-perm-devs'] + self.pci_perm_dev_config = pci_perm_dev_config devices = child_at(child(self.pci_perm_dev_config, 'unconstrained_dev_ids'),0) if self.__matchPCIdev( devices ): -- 2.30.2